package org.lex.notepad.ui.action.file;

import java.awt.Event;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.KeyStroke;

import org.lex.notepad.ui.action.BaseNotepadAction;

public class ExitAction extends BaseNotepadAction {
	public ExitAction() {
		super();
		this.setName("Exit");
		this.setMnemonic(KeyEvent.VK_X);
		this.setAcceleratorKey(KeyStroke.getKeyStroke(KeyEvent.VK_Q, Event.CTRL_MASK, false));
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		actions.exitAction();
	}
}
